package www.lagou.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * CREATE TABLE TRANSACTION (
 *  id INT PRIMARY KEY AUTO_INCREMENT,
 *  cardid VARCHAR(100) , -- 交易卡号
 *  tratype VARCHAR(100) ,    -- 交易类型： 转入 或者 转出
 *  tramoney DOUBLE  , -- 交易金额
 *  tradate DATETIME  -- 交易日期
 * ) ;
 * 代码编写
 * @author cyt
 * @date 2020/7/12
 */
public class Transaction implements Serializable {

    private Integer id;

    private String cardid;

    public Transaction(Integer id, String cardid, String tratype, Double tramoney, String tradate) {
        this.id = id;
        this.cardid = cardid;
        this.tratype = tratype;
        this.tramoney = tramoney;
        this.tradate = tradate;
    }

    public Transaction() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCardid() {
        return cardid;
    }

    public void setCardid(String cardid) {
        this.cardid = cardid;
    }

    public String getTratype() {
        return tratype;
    }

    public void setTratype(String tratype) {
        this.tratype = tratype;
    }

    public Double getTramoney() {
        return tramoney;
    }

    public void setTramoney(Double tramoney) {
        this.tramoney = tramoney;
    }

    public String getTradate() {
        return tradate;
    }

    public void setTradate(String tradate) {
        this.tradate = tradate;
    }

    private String tratype;

    private Double tramoney;

    private String tradate;
}
